package com.fer.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 这是一个商品信息的实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods extends State implements Serializable {

    //商品ID
    private Integer goods_id;
    //商品名称
    private String goods_name;
    //商品库存
    private Integer goods_number;
    //商品售价
    private Float out_price;
    //商品成本价(进货价)
    private Float in_price;
    //商品状态(是否在售)
    @JsonProperty(value="is_sale")
    private boolean is_sale;
    //商品所在商店
    private Integer shop_id;

}
